package com.atstudy.headline.web.admin.service;

import com.atstudy.headline.entity.AdCreatives;
import com.atstudy.headline.web.admin.vo.ad.AdCreativeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author A
* @description 针对表【ad_creatives(广告创意表)】的数据库操作Service
* @createDate 2025-06-12 13:55:56
*/
public interface AdCreativesService extends IService<AdCreatives> {

    /**
     * 分页查询
     * @param page
     * @param adCreativeVo
     * @return
     */
    IPage<AdCreatives> pageInfoByAdCreatives(IPage<AdCreatives> page, AdCreativeVo adCreativeVo);

    /**
     * 根据广告计划id列表删除广告创意
     * @param campaignIds
     */
    void deleteByCampaignIds(List<Integer> campaignIds);

    void deleteByCampaignId(Integer campaignId);
}
